<?php
$box = new osTemplate;
$box->assign('tpl_path', _HTTP_THEMES_C);
$box_content = '';
$box->assign('FORM_ACTION', os_draw_form('advanced_search', os_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get', 'onsubmit="return check_form(this);"').os_hide_session_id());
$box->assign('INPUT_KEYWORDS', os_draw_input_field('keywords', '', ' class="text"'));
$box->assign('BUTTON_SUBMIT', os_image_submit('button_add_quick.gif', IMAGE_BUTTON_SEARCH));
$box->assign('SELECT_CATEGORIES',os_draw_pull_down_menu('categories_id', os_get_categories(array (array ('id' => '', 'text' => TEXT_ALL_CATEGORIES)))));
$box->assign('ENTRY_SUBCAT',os_draw_checkbox_field('inc_subcat', '1', true));
$box->assign('SELECT_MANUFACTURERS',os_draw_pull_down_menu('manufacturers_id', os_get_manufacturers(array (array ('id' => '', 'text' => TEXT_ALL_MANUFACTURERS)))));
$box->assign('FORM_END', '</form>');

$box->assign('language', $_SESSION['language']);
// set cache ID
 if (!CacheCheck()) {
	$box->caching = 0;
	$box_searchtop = $box->fetch(CURRENT_TEMPLATE.'/boxes/box_search_top.html');
} else {
	$box->caching = 1;
	$box->cache_lifetime = CACHE_LIFETIME;
	$box->cache_modified_check = CACHE_CHECK;
	$cache_id = $_SESSION['language'];
	$box_searchtop = $box->fetch(CURRENT_TEMPLATE.'/boxes/box_search_top.html', $cache_id);
}

$osTemplate->assign('box_SEARCHTOP', $box_searchtop);
?>